<%--
  Created by IntelliJ IDEA.
  User: 田磊
  Date: 2019/10/10 0010
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>狗龄换算</title>
    <!-- 引入bootstrap框架的样式文件 -->
    <link rel="stylesheet" href="${path}/plugins/bootstrap/css/bootstrap.css" type="text/css">

    <style>
        /* 搜索框中样式 */
        .form-control-feedback {
            color: #484848;
            line-height: 46px;
        }

        .row img {
            width: 25px;
            height: 25px;
        }

        /* 导航宽度 */
        .navbar {
            max-height: 80px;
        }

        .navbar-nav>li>a {
            padding-top: 18px;
            height: 60px;
            /* font-size: 18px; */
            /* color:white; */
            color: #484848;
        }

        .navbar-brand {
            padding-top: 8px;
            /* font-size: 18px; */
            height: 60px;
        }

        .navbar-default .navbar-nav>li>a {
            color: #484848;
        }

        .navbar-default .navbar-nav>li>a:hover {
            color: #000;
        }


        /* 下划线动画 */
        .navbar-right li {
            display: inline-block;
            padding: 0 0.8em;
        }

        .navbar-right a {
            position: relative;
            text-decoration: none;
            color: #484848;
            display: block;
            padding: 1.2em 0.8em;
        }

        .nav-underline:before {
            content: "";
            position: absolute;
            bottom: 0;
            width: 0;
            border-bottom: 2px solid #484848;
        }

        .nav-underline:hover:before {
            width: 80%;
        }

        .nav-underline:before {
            -webkit-transition: width 0.5s ease-in-out;
            -moz-transition: width 0.5s ease-in-out;
            -ms-transition: width 0.5s ease-in-out;
            -o-transition: width 0.5s ease-in-out;
            transition: width 0.5s ease-in-out;
        }

        .mynav-underline-active,
        .mynav-underline-active:hover {
            border-bottom: 2px solid #484848;
            text-align: center;
        }

        .navbar-right a {
            /* font-family:'Times New Roman', Times, serif; */
            /* font-weight: bold; */
            font-family: 宋体, sans-serif;
            letter-spacing: 1pt;
            /*字间距离*/
            /* border-bottom : 1px solid #4e5358; 下框线 */
            line-height: 20px;

        }

    </style>
</head>

<body>
<!--导航-->
<%--<div class="container-fluid">--%>
    <%--<!-- 使页面铺满整个屏幕 -->--%>
    <%--<div class="row">--%>
        <%--<nav class="navbar navbar-default navbar-fixed-top" role="navigation">--%>
            <%--<div class="container-fluid">--%>
                <%--<div class="navbar-brand" style="margin-left:10px">--%>
                    <%--<img src="img" href="#"></a>--%>
                <%--</div>--%>
                <%--<div class="navbar-brand" style="margin-left:10px">--%>
                    <%--<form class="form-horizontal" role="form">--%>
                        <%--<div class="form-group has-feedback">--%>
                            <%--<div class="modal-md">--%>
                                <%--<span class="glyphicon glyphicon-search form-control-feedback"></span>--%>
                                <%--<input id="search" type="text" class="form-control input-lg" placeholder="搜'柴犬'试试">--%>
                            <%--</div>--%>
                        <%--</div>--%>
                    <%--</form>--%>
                <%--</div>--%>

                <%--<ul class="nav navbar-nav navbar-right">--%>
                    <%--<li class="pure-menu-selected"><a href="index.html" class="mynav-underline-active"><b>首页</b></a></li>--%>
                    <%--<li><a href="forum/forum.html" class="nav-underline"><b>论坛</b></a></li>--%>
                    <%--<li><a href="PetDynamics/dynamic.html" class="nav-underline"><b>宠物动态</b></a></li>--%>
                    <%--<li><a href="trading/homepage.html" class="nav-underline"><b>二手市场</b></a></li>--%>
                    <%--<li><a href="fun-function.html" class="nav-underline"><b>趣味专区</b></a></li>--%>
                    <%--<li><a href="message-centre.html" class="nav-underline"><b>消息中心</b></a></li>--%>
                    <%--<li><a href="PetPerson/person.html" class="nav-underline"><b>我的</b></a></li>--%>

                <%--</ul>--%>
            <%--</div>--%>
        <%--</nav>--%>

    <%--</div>--%>
<%--</div>--%>
<%@include file="sharedper/nav.jsp"%>
<%--<div class="background" style="opacity: 0.5;width: 1500px;height: 1500px;position: absolute">--%>
    <%--<img src="http://pz9i3bxwr.bkt.clouddn.com//fun.png" style="width:100%;height: 100%;">--%>
<%--</div>--%>
<div class="pe_left" style="margin-top: 100px;margin-left:460px">
    <div style="margin-left: 150px;opacity: 0.5;">
        <img src="http://pz9i3bxwr.bkt.clouddn.com//261.png"/>
    </div>
    <div class="le_box pet_dos" style="height:340px;margin-top: 30px">
        <div class="le_top">
            <div class="tab leyer2">
                <table>
                    <tr>
                        <th style="font-size: 20px">狗狗体型：</th>
                        <td>
                            <div class="pet_age2">
                                <ul class="tool_breed_list" style="float:right;width:400px;">
                                    <li class="too_breed_li">
                                        <label>
                                            <img width="53" height="35" alt="小型犬" src="http://www.dog126.com/images/dogage/xiao.gif">
                                            <input type="radio" value="3" name="rabreed" class="rabreed" id="small">
                                            小型犬
                                        </label>
                                    </li>
                                    <li class="too_breed_li">
                                        <label>
                                            <img width="53" height="35" alt="中型犬" src="http://www.dog126.com/images/dogage/zhong.gif">
                                            <input type="radio" value="2" name="rabreed" class="rabreed" id="middle">
                                            中型犬
                                        </label>
                                    </li>
                                    <li class="too_breed_li">
                                        <label>
                                            <img width="53" height="35" alt="大型犬" src="http://www.dog126.com/images/dogage/da.gif">
                                            <input type="radio" value="1" name="rabreed" class="rabreed" id="big">
                                            大型犬
                                        </label>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <tr >
                        <th style="font-size: 20px">狗狗年龄：&nbsp;&nbsp;</th>
                        <td>
                            <input type="text" id="dage" class="tab_input tool_age_val" value=""/>&nbsp;岁 =<span class="font18">
                            人类 <input type="text" id="rage" class="tab_input tool_age_result"
                                       value=""/>
                            岁</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <th></th>

                        <td>

                            <input class="tab_btn tool_age_btn" id="conversion" type="button" value="开始计算"/>
                        </td>
                        <td><span id="thought"></span></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="xts" style="font-size: 10px">
            <h4>小贴士:</h4>
            <p><span class="font_lv">大型犬（26公斤以上）</span>包括拳师、德牧、拉拉、金毛、马犬、杜宾、古牧、灵缇、秋田、阿拉斯加雪橇、罗威那、寻血猎犬、伯恩山犬、藏獒、爱尔兰猎狼犬、大丹……</p>
            <p><span class="font_lv">中型犬（11-25公斤）</span>包括可卡、斗牛犬、大麦町、松师、西伯利亚犬、边牧、沙皮……</p>
            <p><span class="font_lv">小型犬（1-10公斤）</span>包括吉娃娃、约克夏、北京犬、巴哥犬、米你贵宾、腊肠、猎狐梗……</p>
        </div>

    </div>

            <img src="http://pz9i3bxwr.bkt.clouddn.com//$~4IZ4H46~U7DD}C[7X@YNJ_看图王.png" style="margin-left: 160px">
            <img src="http://pz9i3bxwr.bkt.clouddn.com//$~4IZ4H46~U7DD}C[7X@YNJ_看图王1.png">


</div>
        <img src="http://pz9i3bxwr.bkt.clouddn.com//8K]3~1(80N5R9QRLH[S}}VO_看图王3.png" style="margin-left: 619px;margin-top:-6px">
        <img src="http://pz9i3bxwr.bkt.clouddn.com//8K]3~1(80N5R9QRLH[S}}VO_看图王4.png" style="margin-top:-6px">
<!-- bootstrap中的js插件依赖于jquery框架,所以必须先引入jquery的js文件 -->
<script src="${path}/plugins/jquery/jquery.min.js"></script>
<!--引入bootstrap的js文件-->
<script src="${path}/plugins/bootstrap/js/bootstrap.js"></script>


<script>
    $(document).ready(function () {
        $("#search").focus(function () {
            $(this).css("padding-right", "200.5px")
        });
        $("#search").blur(function () {
            $(this).css("padding-right", "42.5px")
        });
    });

</script>
<script>
    $("#conversion").click(function () {
        if(document.getElementById("small").checked){
            $.post("${path}/fun/conversion",
                {
                    small:document.getElementById("small").value,
                    dage:document.getElementById("dage").value
                },
                function (data) {
                if(data=="请勾选体型"){
                    alert("请勾选体型");
                }else
                    document.getElementById("rage").value=data;
                }
            )
        }else if(document.getElementById("middle").checked){
            $.post("${path}/fun/conversion",
                {
                    middle:document.getElementById("middle").value,
                    dage:document.getElementById("dage").value
                },
                function (data) {
                    if(data=="请勾选体型"){
                        alert("请勾选体型");
                    }else
                    document.getElementById("rage").value=data;
                    }
            )
        }else if (document.getElementById("big").checked){
            $.post("${path}/fun/conversion",
                {
                    big:document.getElementById("big").value,
                    dage:document.getElementById("dage").value
                },
                function (data) {
                    if(data=="请勾选体型"){
                        alert("请勾选体型");
                    }else
                    document.getElementById("rage").value=data;

                }
            )
        }else {
            alert("请勾选体型");
        }
    });
</script>
</body>

</html>
